Page({
  data: {
    scrollTop: 0,
    stickyTop: 40
  },
  onLoad() {
    setTimeout(() => {
      let top = wx.getSystemInfoSync().windowWidth / 750 * 80
      this.setData({
        stickyTop: top
      })
    }, 50)
  },
  //页面滚动执行方式
  onPageScroll(e) {
    this.setData({
      scrollTop: e.scrollTop
    })
  }
})